<div>
	<div class="panel-heading font-160 height-53">{{'generateLetter' | translate}}</div>
	<div class="panel-body">
		<div ng-if="paymentDates.length > 0">
			<form class="form-horizontal">
				<div class="form-group">
					<label class="col-sm-offset-2 col-sm-2 control-label" translate="date"></label>
					<div class="col-sm-4">
						<select class="form-control" ng-model="selectedDate" ng-options="paymentDate | date: 'dd/MM/yyyy' for paymentDate in paymentDates"></select>
					</div>
				</div>
			</form>
			<div class="center top-10">
				<button class="btn btn-primary" translate="accept" ng-click="save()"></button>
				<button class="btn btn-warning" translate="cancel" ng-click="cancel()"></button>
			</div>
		</div>
		<div ng-if="paymentDates.length == 0">
			<span>{{'noPaymentDates' | translate}}</span>
			<div class="center top-10">
				<button class="btn btn-warning" translate="cancel" ng-click="cancel()"></button>
			</div>
		</div>
	</div>
</div>